<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="~{common/admin-edit-template}">
<head>
    <title>修改</title>
    <!-- iCheck -->
    <link rel="stylesheet" href="/plugins/iCheck/square/green.css">
</head>
<body class="hold-transition skin-green-light  sidebar-mini">

<div layout:fragment="content">
    <!-- Content Header (Page header) -->

    <!-- Main content -->
    <section class="content container-fluid">
        <form id="form-oper" role="form" data-toggle="validator">

            <div class="nav-tabs-custom">
                <ul class="nav nav-tabs">
                    <li class="active"><a href="#tab_1" data-toggle="tab">表</a></li>
                    <li><a href="#tab_2" data-toggle="tab">列</a></li>
                    <li><a href="#tab_3" data-toggle="tab">其他</a></li>

                    <li class="pull-right"><a href="#" class="text-muted"><i class="fa fa-gear"></i></a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="tab_1">
                        <!-- edit or add box -->
                        <div class="page-edit box box-default" data-widget="box-widget">

                            <input id="hidden-id" type="hidden" name="id" th:value="${entity.id}">
                            <div class="box-body">
                                <div class='form-group '>
                                    <label>表名</label>
                                    <input class='form-control' type='text' name="tableName"
                                           th:value="${entity.tableName}"
                                           maxlength="20" required>
                                    <div class='help-block with-errors'></div>
                                </div>
                                <div class="form-group">
                                    <label>模板名</label>
                                    <input class='form-control' type='text' name="moduleName"
                                           th:value="${entity.moduleName}"
                                           maxlength="20" placeholder="将会影响生成文件的路径和包名,默认为system(即系统功能模块)" required>
                                </div>
                                <div class='form-group '>
                                    <label>实体名</label>
                                    <input class='form-control' type='text' name="entityName"
                                           th:value="${entity.entityName}"
                                           maxlength="20" required>
                                    <div class='help-block with-errors'></div>
                                </div>


                            </div>
                            <!-- /.box-body -->
                            <div class="box-footer">
                                <a class="btn btn-danger pull-right" onclick="operate.cancel()">取消
                                </a>

                                <!--<button type="submit" class="btn btn-primary pull-right btn-submit">提交
                                </button>-->
                            </div>
                            <!-- /.box-footer -->

                            <!--/.form -->
                            <div class="overlay" style="display: none">
                                <i class="fa fa-refresh fa-spin"></i>
                            </div>
                            <!-- /.loading overlay-->
                        </div>
                    </div>
                    <div class="tab-pane" id="tab_2"></div>
                    <div class="tab-pane" id="tab_3">
                        <div class='form-group '>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="generateController"
                                           th:checked="${entity.generateController}">
                                    是否生成控制器
                                </label>
                            </div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="generateSerivceInteface"
                                           th:checked="${entity.generateSerivceInteface}">
                                    是否生成服务接口
                                </label>
                            </div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="generateHtml"
                                           th:checked="${entity.generateHtml}">
                                    是否生成html
                                </label>
                            </div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="generateAddFunctionCode"
                                           th:checked="${entity.generateAddFunctionCode}">
                                    是否生成添加功能的代码
                                </label>
                            </div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="generateEditFunctionCode"
                                           th:checked="${entity.generateEditFunctionCode}">
                                    是否生成修改功能的代码
                                </label>
                            </div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="generateDeleteFunctionCode"
                                           th:checked="${entity.generateDeleteFunctionCode}">
                                    是否生成删除功能的代码
                                </label>
                            </div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="generateListFunctionCode"
                                           th:checked="${entity.generateListFunctionCode}">
                                    是否生成查询列表功能的代码
                                </label>
                            </div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="generateExportExcelFunctionCode"
                                           th:checked="${entity.generateExportExcelFunctionCode}">
                                    是否生成导出Excel功能的代码
                                </label>
                            </div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="generateFile"
                                           th:checked="${entity.generateFile}">
                                    是否直接生成文件到工程中
                                </label>
                            </div>
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" name="overwriteFile"
                                           th:checked="${entity.overwriteFile}">
                                    直接生成文件到工程的过程中，是否覆盖已存在的文件
                                </label>
                            </div>

                        </div>
                    </div>
                </div>
                <!-- /.edit or add box -->
            </div>
        </form>
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->


<div layout:fragment="page-js">
    <!-- iCheck -->
    <script src="/plugins/iCheck/icheck.min.js"></script>
    <script src="/dist/js/pages/generatecode/generatecode-edit.js"></script>
</div>


</body>
</html>